package com.sdp.th.cwt;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.StandardCharsets;
import java.util.Map;

import org.omg.CosNaming.IstringHelper;

import com.sdp.th.utils.HexStringUtils;

public class T {

	public static void main(String[] args) {

		String t = "010182a4d5c2a96bde681fd1a10001f51100ff9c000000be00000000383938363038353831313235443139383435393738363036303830373732383437343200000000003436303234303438383132393539370000000000454338303145000000000000000000000000000000000000040d9d830000b8cf56312e302e305f3234303931300000000000000056312e30000000000000000000000000000000004e502d46593330302d3447000000000000000000312e352e30000000000000000200005900600006006100010063000000000015006400610002006200000000001700000061000300620000000000180000006100040062000000000004012300610005006200000000001a073900610006006200000000002e00009d";
		
		
		byte[] data = HexStringUtils.toBytes(t);
	
//        ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.BIG_ENDIAN);
//		System.out.println(ISNBParser.parseUpHeader(buffer));
//        System.out.println(ISNBParser.getDeviceId(data));
		System.out.println(ISNBParser.isSmokeAlarm(data));
		System.out.println(ISNBParser.smokeState(t));
		System.out.println(HexStringUtils.hexToDecimal("0064"));
	
	}
	
	
	

}
